#include "ClientNet.h"

ClientNet::ClientNet()
: m_pSock( NULL )
, m_nSockIndex( 0 )
{
	m_pSock = new ClientSock;
}

ClientNet::~ClientNet()
{
	SAFE_DELETE( m_pSock );
}

bool ClientNet::Connect( std::string sIP, int nPort )
{
	if( !m_pSock )
		return false;

	return m_pSock->Connect( sIP.c_str(), nPort );
}

void ClientNet::SetSockIndex( int nSockIndex )
{
	m_nSockIndex = nSockIndex;
}

